#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a = 0;
	scanf("%d", &a);
	int cnt = 0;
	do
	{
		cnt++;
		a /= 10;



	} while (a);
	printf("%d", cnt);
	return 0;
}